/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wss.lsl.alading.controller.user;

import com.wss.lsl.alading.service.ICompanyCardService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author weishengshui
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private ICompanyCardService companyCardService;
    Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping(value = "/show/{userId}", method = RequestMethod.GET)
    @ResponseBody()
    public String showUser(@PathVariable("userId") int userId, Model model) {

//        UserInfo userInfo = userService.findUserInfoById(userId);
//        model.addAttribute("user", userInfo);
        logger.info("companyCardService={}",companyCardService);

        return "user/show";
    }

    @RequestMapping("xxx")
    public String xxx() {
        return "user/xxx";
    }
}
